package cn.tedu.spring.eg2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
@Repository
public class CommentMapper {
    @Autowired
    //当存在多个相同类型的bean实例时，
    //可以通过@Qualifier注解来告诉
    //Spring容器应该注入哪一个实例
    @Qualifier("mapperImpl2")
    private  Mapper mapper;
}
